﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Iterator
{
    class AnimalContainer:Container
    {
        List<String> list;
        public AnimalContainer()
        {
            this.list = new List<string>();
            this.list.Add("dog");
            this.list.Add("duck");
            this.list.Add("elephone");
        }
        public Iterator GetIterator()
        {
          return   new AnimalIterator(this.list);
        }
    }
}
